<?php

declare(strict_types=1);

namespace App\Model;



use Carbon\Carbon;

/**
 * @property int $id 
 * @property string $name 诗词title
 * @property string $url 链接
 * @property string $author 作者
 * @property string $author_img 作者头像
 * @property string $connect 诗词内容
 * @property string $translation 译文
 * @property int $status 状态: 0.启用 1.禁言
 * @property Carbon $created_at 创建时间
 * @property Carbon $updated_at 更新时间
 * @property int $created_by 创建者
 * @property int $updated_by 修改人
 */
class AncientPoetry extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'ancient_poetry';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'name', 'url', 'author', 'author_img', 'connect', 'translation', 'status', 'created_at', 'updated_at', 'created_by', 'updated_by'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'status' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'created_by' => 'integer', 'updated_by' => 'integer'];
}
